GetPartitions Method

Task Parallel System.Threading

Partitions the underlying collection into the given number of ordered partitions.

Namespace:  System.Collections.Concurrent
Assembly:  System.Threading (in System.Threading.dll)

Syntax

Visual Basic (Declaration)
Public Overrides Function GetPartitions ( _
	partitionCount As Integer _
) As IList(Of IEnumerator(Of TSource))
C#
public override IList<IEnumerator<TSource>> GetPartitions(
	int partitionCount
)

Parameters

partitionCount
Type: System..::.Int32
The number of partitions to create.

Return Value

A list containing partitionCount enumerators.

Remarks

The default implementation provides the same behavior as GetOrderablePartitions(Int32) except that the returned set of partitions does not provide the keys for the elements.

See Also